package main

//日志级别
const (
	INFO = iota
	DEBUG
	ERROR
	WARN
)

//日志分割类型
const (
	LogSplitTypeHour = "hour"
	LogSplitTypeSize = "size"
)

//级别对应
func LogLevelString(level int)(levelStr string){
	switch  level{
	case INFO:
		levelStr = "INFO"
	case DEBUG:
		levelStr = "DEBUG"
	case ERROR:
		levelStr = "ERROR"
	case WARN:
		levelStr = "WARN"
	}
	return
}
